/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.univnantes.alma.arbres;

/**
 *
 * @author judu
 */
class NoeudTM<T> extends Noeud<T> {

    private int index;
    

    /**
     * 
     * @param etiquette
     * @param index
     */
    protected NoeudTM(int etiquette, int index, int position, T valeur) {
        super(etiquette, valeur, position);
        this.index = index;
    }

    public NoeudTM(Integer etiquette, int index, int position) {
        super(etiquette, position);
        this.index = index;
    }

    

    public int getIndex() {
        return index;
    }

    public Noeud<T> autoCast(){
        return (Noeud<T>) this;
    }

}
